home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14557 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: dawn.mmm.com!news
  2. From: cjsonnack@mmm.com (Chris Sonnack)
  3. Newsgroups: comp.lang.c,comp.unix.programmer
  4. Subject: Re: Q: '\n' character
  5. Followup-To: comp.lang.c,comp.unix.programmer
  6. Date: 15 Apr 1996 14:54:22 -0500
  7. Organization: 3M/IT/EIS (St.Paul,MN 55144)
  8. Message-ID: <4ku9he$5ee@dawn.mmm.com>
  9. References: <4kj66f$k0o@ren.cei.net> <1996Apr11.192937.25676@sq.com> <829396473snz@genesis.demon.co.uk> <4kpd2g$eeb@masala.cc.uh.edu> <1996Apr14.014133.22865@sq.com>
  10. Reply-To: cjsonnack@mmm.com (Chris Sonnack)
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Mark Brader (msb@sq.com) wrote:
  14.  
  15. >>>>  if (ptr) *ptr = '\0';
  16. >> 
  17. >> Ok, I've got a question at this point.  Is it really proper to say
  18. >> if (ptr)?
  19. >
  20. > Yes.  Please reread the comp.lang.c FAQ list.
  21.  
  22. I just finished a Java class give by Sun (WARNING: AVOID THIS CLASS, IT
  23. WAS -- BY FAR -- ONE OF THE WORST TECHNICAL EDUCATION EXPERIENCES OF MY
  24. LIFE!!!). Java has (go figure) eliminated the above ability. The if()
  25. (and the loops) MUST HAVE a boolean value there, NOT a zero/non-zero.
  26.  
  27. In Java, you MUST write:  if (x != 0) { /** do stuff **/ }
  28.  
  29. After being excited about it and giving it much thought, I've decided
  30. I can do without Java...but that's another newsgroup....
  31.  
  32. --
  33. Chris Sonnack  <cjsonnack@mmm.com>                  http://eishcq.mmm.com
  34. Engineering Information Services/Information Technology/3M, St.Paul, Minn
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. "It ain't no sin to be glad you're alive."
  37.  
  38. Opinions expressed herein are my own and may not represent those of my employer.
  39.